package cn.com.chengmandian.bike.service;

import cn.com.chengmandian.bike.dto.MemberMoneyDto;
import cn.com.chengmandian.bike.model.EbMemberMoney;
import cn.com.chengmandian.core.web.pojo.AgentUser;
import cn.com.chengmandian.service.bike.constants.MemberMoneyBusinessTypeEnum;
import cn.com.chengmandian.service.bike.constants.MemberMoneyOperationTypeEnum;
import cn.com.chengmandian.service.bike.constants.MemberMoneyTypeEnum;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 电单车运营-资金流水 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-12-11
 */
public interface IEbMemberMoneyService extends IService<EbMemberMoney> {

    void createGift(Integer areaId, Integer memberId, MemberMoneyBusinessTypeEnum businessType, Integer businessId, MemberMoneyOperationTypeEnum operationType, BigDecimal money);

    void createCharge(Integer areaId, Integer memberId, MemberMoneyBusinessTypeEnum businessType, Integer businessId, MemberMoneyOperationTypeEnum operationType, BigDecimal money);

    void createPay(Integer areaId, Integer memberId, MemberMoneyBusinessTypeEnum businessType, Integer businessId, MemberMoneyOperationTypeEnum operationType, BigDecimal money);

    void create(Integer areaId, Integer memberId, MemberMoneyBusinessTypeEnum businessType, Integer businessId,MemberMoneyOperationTypeEnum operationType, BigDecimal money, MemberMoneyTypeEnum type);

    IPage<EbMemberMoney> pages(MemberMoneyDto memberMoneyDto, AgentUser agentUser);
}
